package com.milkshopbackend.milkshop.Service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.milkshopbackend.milkshop.entity.Product;
import com.milkshopbackend.milkshop.entity.ProductDTO;

public interface ProductService extends IService<Product> {

    Product createProduct(ProductDTO productDTO);

    Product updateProduct(Long id, ProductDTO productDTO);

    void  deleteProduct(Long id);

    Product getProduct(Long id);

    Page<Product> listProducts(Integer page,Integer size,String keyword);

    void updateStatus(Long id, boolean status);


}
